package net.peelmeagrape.hibernate;

/**
 * What type of SQL SELECT should be used to fetch.
 */
public enum FetchSetting
{
    JOIN("join"),
    SELECT("select"),
    /**
     * doesn't apply for {@link OneToOne}, {@link ManyToOne}.
     */
    SUBSELECT("subselect");
    private String value;

    FetchSetting(String value)
    {
        this.value = value;
    }

    public String toString()
    {
        return value;
    }
}
